package com.ruoyi.system.pool;

import com.jcraft.jsch.ChannelExec;
import com.jcraft.jsch.Session;

/**
 * @description: 执行器
 * @author: stone
 * @date: Created by 2022/4/16 18:38
 * @version: 1.0.0
 * @pakeage: com.ruoyi.system.pool
 */
public interface Executor<T> {

    public ChannelExec openChannelExec(Session session);

    public void closeChannelExec(ChannelExec channelExec);


    public T execute(String cmd);
}
